﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RTracker.Models.Common;

namespace RTracker.Controllers
{
    public class CommonController : AppBaseController
    {
        //
        // GET: /Common/

        public ActionResult Index()
        {
            try
            {
                //call CheckSession to get session status
                string SessionState = CheckSessionState();

                if (SessionState == CAppConstants.SessionSuccess)
                {
                    return View("Indexmain");
                }

            }
            catch (Exception)
            {

            }
            return View("~/Views/Login/Index.cshtml");
        }
        public ActionResult Login()
        {
            ViewBag.ReturnUrl = "";
            return View("~/Views/Login/Index.cshtml");
        }

    }
}
